package com.huawei.billms.bills.service.impl;

import com.huawei.billms.bills.dao.BillsDao;
import com.huawei.billms.bills.dto.BillsDto;
import com.huawei.billms.bills.entity.BillsEntity;
import com.huawei.billms.bills.service.BillsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 黄后林
 * @date 2022-11-04 15:29:54
 * @note 程序员是用代码喂出来的
 */

@Service
public class BillsServiceImpl implements BillsService {


    @Autowired
    private BillsDao dao;

    @Override
    public int save(BillsEntity entity) {
        return dao.insertSelective(entity);
    }

    @Override
    public List<BillsEntity> findAllBillsByConditions(BillsDto dto) {
        return dao.findAllBillsByConditions(dto);
    }
}
